﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluorineFx;
using System.ComponentModel;
using System.Data;
using System.Collections;

namespace Sysmng
{
    [RemotingService]
    [Description("SysmngQuery")]
    class SysmngQuery
    {
        #region 获取用户信息列表
        [DataTableType("")]
        public DataTable GetUserInfoList(int SearchType, string Content)
        {
            DataTable dt = SysmngDB.GetUserInfoList(SearchType, Content);
            return dt;
        }
        #endregion

        #region 加载用户详细信息界面信息
        [DataTableType("")]
        public DataTable GetUserBaseInfo()
        {
            return SysmngDB.GetUserBaseInfo();
        }
        #endregion

        #region 删除客户
        public string DeleteUserBaseInfo(string UserID)
        {
            string rst = SysmngDB.DeleteUserBaseInfo(UserID);
            return rst;
        }
        #endregion

        #region 编辑用户信息
        public string EditUserInfo(UserInfoItem userInfo)
        {
            string rst = SysmngDB.EditUserInfo(userInfo);
            return rst;
        }
        #endregion

        #region 查询角色列表
        [DataTableType("")]
        public DataTable GetRoleInfoList(string RoleName)
        {
            DataTable dt = SysmngDB.GetRoleInfoList(RoleName);
            return dt;
        }
        #endregion 

        #region 删除角色信息
        public string DeleteRoleBaseInfo(int RoleID)
        {
            string rst = SysmngDB.DeleteRoleBaseInfo(RoleID);
            return rst;
        }
        #endregion

        #region 编辑角色信息
        public string EditRoleInfo(RoleInfoItem roleInfo)
        {
            string rst = SysmngDB.EditRoleInfo(roleInfo);
            return rst;
        }
        #endregion

        #region 获取目录列表，用于加载角色分配目录树
        [DataTableType("")]
        public DataTable GetMenuList()
        {
            DataTable dt = SysmngDB.GetMenuList();
            return dt;
        }
        #endregion

        #region 获取角色基础信息，填充角色详情页面
        [DataTableType("")]
        public DataSet GetRoleBaseInfo(int RoleId)
        {
            DataSet ds = SysmngDB.GetRoleBaseInfo(RoleId);
            return ds;
        }
        #endregion
    }
}
